const viewGenerator = require('./plop-templates/view/prompt')
const componentGenerator = require('./plop-templates/component/prompt')
const storeGenerator = require('./plop-templates/store/prompt.js')

module.exports = function(plop) {
  // 添加自定义助手函数用于处理 TypeScript 相关的转换
  plop.setHelper('properCase', (text) => {
    return text.charAt(0).toUpperCase() + text.slice(1)
  })

  plop.setGenerator('view', viewGenerator)
  plop.setGenerator('component', componentGenerator)
  plop.setGenerator('store', storeGenerator)
}
